package longshu.srpc.server;

import longshu.srpc.api.RpcService;

/**
 * RpcServer 负责导出（export）远程接口
 *
 * @author LongShu 2017/12/03
 */
public interface RpcServer {

    void start();

    void stop();

    boolean isRunning();

    void export(Class<? extends RpcService> serviceInterface, Class<? extends RpcService> serviceImpl);

    void export(Class<? extends RpcService> serviceInterface, RpcService servieInstance);

}
